using System.CodeDom.Compiler;
using System.ServiceModel;
using System.Threading.Tasks;

namespace 立讯MES_PB25.ServiceReference1
{
	[GeneratedCode("System.ServiceModel", "4.0.0.0")]
	[ServiceContract(Namespace = "AutomationWebService", ConfigurationName = "ServiceReference1.WebServiceSoap")]
	public interface WebServiceSoap
	{
		[OperationContract(Action = "AutomationWebService/All_MESFunction", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string All_MESFunction(string FunctionName, string Parameter1, string Parameter2, string Parameter3, string Parameter4, string Parameter5, string Parameter6, string Parameter7, string Parameter8, string Parameter9, string Parameter10);

		[OperationContract(Action = "AutomationWebService/All_MESFunction", ReplyAction = "*")]
		Task<string> All_MESFunctionAsync(string FunctionName, string Parameter1, string Parameter2, string Parameter3, string Parameter4, string Parameter5, string Parameter6, string Parameter7, string Parameter8, string Parameter9, string Parameter10);

		[OperationContract(Action = "AutomationWebService/GetMainSNByKeyparts", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetMainSNByKeyparts(string SN);

		[OperationContract(Action = "AutomationWebService/GetMainSNByKeyparts", ReplyAction = "*")]
		Task<string> GetMainSNByKeypartsAsync(string SN);

		[OperationContract(Action = "AutomationWebService/UploadHeightData", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadHeightData(string SN, string terminalName, string userNo, string result, string testData);

		[OperationContract(Action = "AutomationWebService/UploadHeightData", ReplyAction = "*")]
		Task<string> UploadHeightDataAsync(string SN, string terminalName, string userNo, string result, string testData);

		[OperationContract(Action = "AutomationWebService/GET_ITEM_PART_SN_INFO", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GET_ITEM_PART_SN_INFO(string SN);

		[OperationContract(Action = "AutomationWebService/GET_ITEM_PART_SN_INFO", ReplyAction = "*")]
		Task<string> GET_ITEM_PART_SN_INFOAsync(string SN);

		[OperationContract(Action = "AutomationWebService/Hold_SN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string Hold_SN(string SN, string EMP_NO, string MEMO);

		[OperationContract(Action = "AutomationWebService/Hold_SN", ReplyAction = "*")]
		Task<string> Hold_SNAsync(string SN, string EMP_NO, string MEMO);

		[OperationContract(Action = "AutomationWebService/CheckGlassesBing", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckGlassesBing(string RightSN, string LeftSN);

		[OperationContract(Action = "AutomationWebService/CheckGlassesBing", ReplyAction = "*")]
		Task<string> CheckGlassesBingAsync(string RightSN, string LeftSN);

		[OperationContract(Action = "AutomationWebService/GetSNLaserInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNLaserInfo(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSNLaserInfo", ReplyAction = "*")]
		Task<string> GetSNLaserInfoAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSNLineIsSample", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNLineIsSample(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetSNLineIsSample", ReplyAction = "*")]
		Task<string> GetSNLineIsSampleAsync(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetKeyPartsSNStatus", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetKeyPartsSNStatus(string IntSN, string terminalName, string userNo);

		[OperationContract(Action = "AutomationWebService/GetKeyPartsSNStatus", ReplyAction = "*")]
		Task<string> GetKeyPartsSNStatusAsync(string IntSN, string terminalName, string userNo);

		[OperationContract(Action = "AutomationWebService/GetSNStatus", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNStatus(string IntSN, string terminalName, string userNo);

		[OperationContract(Action = "AutomationWebService/GetSNStatus", ReplyAction = "*")]
		Task<string> GetSNStatusAsync(string IntSN, string terminalName, string userNo);

		[OperationContract(Action = "AutomationWebService/CheckCurrentValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckCurrentValue(string SERIAL_NUMBER);

		[OperationContract(Action = "AutomationWebService/CheckCurrentValue", ReplyAction = "*")]
		Task<string> CheckCurrentValueAsync(string SERIAL_NUMBER);

		[OperationContract(Action = "AutomationWebService/UploadingCurrentValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadingCurrentValue(string SERIAL_NUMBER, string CurrentValue);

		[OperationContract(Action = "AutomationWebService/UploadingCurrentValue", ReplyAction = "*")]
		Task<string> UploadingCurrentValueAsync(string SERIAL_NUMBER, string CurrentValue);

		[OperationContract(Action = "AutomationWebService/GetEmpStatus", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetEmpStatus(string userNo);

		[OperationContract(Action = "AutomationWebService/GetEmpStatus", ReplyAction = "*")]
		Task<string> GetEmpStatusAsync(string userNo);

		[OperationContract(Action = "AutomationWebService/UploadTestResult", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadTestResult(string IntSN, string terminalName, string defectCode, string result, string userNo, string itemList, string funType);

		[OperationContract(Action = "AutomationWebService/UploadTestResult", ReplyAction = "*")]
		Task<string> UploadTestResultAsync(string IntSN, string terminalName, string defectCode, string result, string userNo, string itemList, string funType);

		[OperationContract(Action = "AutomationWebService/CheckSN_BalanceValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckSN_BalanceValue(string Left_SerialNumber, string Right_SerialNumber);

		[OperationContract(Action = "AutomationWebService/CheckSN_BalanceValue", ReplyAction = "*")]
		Task<string> CheckSN_BalanceValueAsync(string Left_SerialNumber, string Right_SerialNumber);

		[OperationContract(Action = "AutomationWebService/InserIntoSN_BalanceValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string InserIntoSN_BalanceValue(string Left_SerialNumber, string Right_SerialNumber);

		[OperationContract(Action = "AutomationWebService/InserIntoSN_BalanceValue", ReplyAction = "*")]
		Task<string> InserIntoSN_BalanceValueAsync(string Left_SerialNumber, string Right_SerialNumber);

		[OperationContract(Action = "AutomationWebService/GetAssignedCustomerSN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetAssignedCustomerSN(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetAssignedCustomerSN", ReplyAction = "*")]
		Task<string> GetAssignedCustomerSNAsync(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetAMSn", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetAMSn(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetAMSn", ReplyAction = "*")]
		Task<string> GetAMSnAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetPartNoBySn", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetPartNoBySn(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetPartNoBySn", ReplyAction = "*")]
		Task<string> GetPartNoBySnAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/UploadAMSn", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadAMSn(string IntSN, string linkData, string linkDesc, string terminalName);

		[OperationContract(Action = "AutomationWebService/UploadAMSn", ReplyAction = "*")]
		Task<string> UploadAMSnAsync(string IntSN, string linkData, string linkDesc, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetSNCustomizedInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNCustomizedInfo(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSNCustomizedInfo", ReplyAction = "*")]
		Task<string> GetSNCustomizedInfoAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetBatteryInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetBatteryInfo(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetBatteryInfo", ReplyAction = "*")]
		Task<string> GetBatteryInfoAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetBatterySNBySN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetBatterySNBySN(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetBatterySNBySN", ReplyAction = "*")]
		Task<string> GetBatterySNBySNAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSNBindInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNBindInfo(string IntSN, string typeCode);

		[OperationContract(Action = "AutomationWebService/GetSNBindInfo", ReplyAction = "*")]
		Task<string> GetSNBindInfoAsync(string IntSN, string typeCode);

		[OperationContract(Action = "AutomationWebService/GetSNBindInfo2", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNBindInfo2(string IntSN, string InMacL, string InMacR);

		[OperationContract(Action = "AutomationWebService/GetSNBindInfo2", ReplyAction = "*")]
		Task<string> GetSNBindInfo2Async(string IntSN, string InMacL, string InMacR);

		[OperationContract(Action = "AutomationWebService/CheckTestTesult", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckTestTesult(string IntSN, string ItemName);

		[OperationContract(Action = "AutomationWebService/CheckTestTesult", ReplyAction = "*")]
		Task<string> CheckTestTesultAsync(string IntSN, string ItemName);

		[OperationContract(Action = "AutomationWebService/GetSNBindMacInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNBindMacInfo(string IntSN, string InMacL, string InMacR);

		[OperationContract(Action = "AutomationWebService/GetSNBindMacInfo", ReplyAction = "*")]
		Task<string> GetSNBindMacInfoAsync(string IntSN, string InMacL, string InMacR);

		[OperationContract(Action = "AutomationWebService/UploadSNBindInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadSNBindInfo(string IntSN, string linkData, string terminalName, string typeCode);

		[OperationContract(Action = "AutomationWebService/UploadSNBindInfo", ReplyAction = "*")]
		Task<string> UploadSNBindInfoAsync(string IntSN, string linkData, string terminalName, string typeCode);

		[OperationContract(Action = "AutomationWebService/SNPassByNoDtl", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string SNPassByNoDtl(string IntSN, string terminalName, string defectCode, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/SNPassByNoDtl", ReplyAction = "*")]
		Task<string> SNPassByNoDtlAsync(string IntSN, string terminalName, string defectCode, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/QuerySNRouteStatus", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string QuerySNRouteStatus(string IntSN);

		[OperationContract(Action = "AutomationWebService/QuerySNRouteStatus", ReplyAction = "*")]
		Task<string> QuerySNRouteStatusAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/CheckFwResult", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckFwResult(string IntSN);

		[OperationContract(Action = "AutomationWebService/CheckFwResult", ReplyAction = "*")]
		Task<string> CheckFwResultAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/InsertTestResult", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string InsertTestResult(string IntSN, string terminalName, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/InsertTestResult", ReplyAction = "*")]
		Task<string> InsertTestResultAsync(string IntSN, string terminalName, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/GetCustomerSN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetCustomerSN(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetCustomerSN", ReplyAction = "*")]
		Task<string> GetCustomerSNAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetCaseSN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetCaseSN(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetCaseSN", ReplyAction = "*")]
		Task<string> GetCaseSNAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetWeightBySN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetWeightBySN(string IntSN, string terminalName, string g_sUserNo, string weight);

		[OperationContract(Action = "AutomationWebService/GetWeightBySN", ReplyAction = "*")]
		Task<string> GetWeightBySNAsync(string IntSN, string terminalName, string g_sUserNo, string weight);

		[OperationContract(Action = "AutomationWebService/GetTestItemCount", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetTestItemCount(string ItemName, string StartTime, string EndTime);

		[OperationContract(Action = "AutomationWebService/GetTestItemCount", ReplyAction = "*")]
		Task<string> GetTestItemCountAsync(string ItemName, string StartTime, string EndTime);

		[OperationContract(Action = "AutomationWebService/SNToGetItemPartSN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string SNToGetItemPartSN(string SerialNumber);

		[OperationContract(Action = "AutomationWebService/SNToGetItemPartSN", ReplyAction = "*")]
		Task<string> SNToGetItemPartSNAsync(string SerialNumber);

		[OperationContract(Action = "AutomationWebService/CheckOutProessTime", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckOutProessTime(string SERIALNUMBER, string TestStation, string TIMEINTERVAL);

		[OperationContract(Action = "AutomationWebService/CheckOutProessTime", ReplyAction = "*")]
		Task<string> CheckOutProessTimeAsync(string SERIALNUMBER, string TestStation, string TIMEINTERVAL);

		[OperationContract(Action = "AutomationWebService/CheckBatteryPower", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckBatteryPower(string IntSN, string terminalName, string g_sUserNo, string ThresholdValue);

		[OperationContract(Action = "AutomationWebService/CheckBatteryPower", ReplyAction = "*")]
		Task<string> CheckBatteryPowerAsync(string IntSN, string terminalName, string g_sUserNo, string ThresholdValue);

		[OperationContract(Action = "AutomationWebService/UploadBatteryPower", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string UploadBatteryPower(string IntSN, string terminalName, string g_sUserNo, string batteryValue, string StewingStanding);

		[OperationContract(Action = "AutomationWebService/UploadBatteryPower", ReplyAction = "*")]
		Task<string> UploadBatteryPowerAsync(string IntSN, string terminalName, string g_sUserNo, string batteryValue, string StewingStanding);

		[OperationContract(Action = "AutomationWebService/GetTestValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetTestValue(string IntSN, string testName, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetTestValue", ReplyAction = "*")]
		Task<string> GetTestValueAsync(string IntSN, string testName, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetTestValue_SMT", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetTestValue_SMT(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetTestValue_SMT", ReplyAction = "*")]
		Task<string> GetTestValue_SMTAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetTestValue_SMT1", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetTestValue_SMT1(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetTestValue_SMT1", ReplyAction = "*")]
		Task<string> GetTestValue_SMT1Async(string IntSN);

		[OperationContract(Action = "AutomationWebService/SaveSPECInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string SaveSPECInfo(string userNo, string terminalName, string result);

		[OperationContract(Action = "AutomationWebService/SaveSPECInfo", ReplyAction = "*")]
		Task<string> SaveSPECInfoAsync(string userNo, string terminalName, string result);

		[OperationContract(Action = "AutomationWebService/GetSPECInfo", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSPECInfo(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSPECInfo", ReplyAction = "*")]
		Task<string> GetSPECInfoAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/CheckLaserCSN", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckLaserCSN(string BSN, string CSN);

		[OperationContract(Action = "AutomationWebService/CheckLaserCSN", ReplyAction = "*")]
		Task<string> CheckLaserCSNAsync(string BSN, string CSN);

		[OperationContract(Action = "AutomationWebService/InsertSNLockCode", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string InsertSNLockCode(string IntSN, string terminalName, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/InsertSNLockCode", ReplyAction = "*")]
		Task<string> InsertSNLockCodeAsync(string IntSN, string terminalName, string result, string userNo);

		[OperationContract(Action = "AutomationWebService/GetSNLockCode", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetSNLockCode(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetSNLockCode", ReplyAction = "*")]
		Task<string> GetSNLockCodeAsync(string IntSN);

		[OperationContract(Action = "AutomationWebService/GetGlueDC", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetGlueDC(string terminalName, string IntSN);

		[OperationContract(Action = "AutomationWebService/GetGlueDC", ReplyAction = "*")]
		Task<string> GetGlueDCAsync(string terminalName, string IntSN);

		[OperationContract(Action = "AutomationWebService/XFLinkPASS", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string XFLinkPASS(string terminalName, string userNo, string CaseSN, string KPSN);

		[OperationContract(Action = "AutomationWebService/XFLinkPASS", ReplyAction = "*")]
		Task<string> XFLinkPASSAsync(string terminalName, string userNo, string CaseSN, string KPSN);

		[OperationContract(Action = "AutomationWebService/GetBudSNByCase", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetBudSNByCase(string terminalName, string userNo, string SN);

		[OperationContract(Action = "AutomationWebService/GetBudSNByCase", ReplyAction = "*")]
		Task<string> GetBudSNByCaseAsync(string terminalName, string userNo, string SN);

		[OperationContract(Action = "AutomationWebService/CheckInsertBatteryValue", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string CheckInsertBatteryValue(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/CheckInsertBatteryValue", ReplyAction = "*")]
		Task<string> CheckInsertBatteryValueAsync(string IntSN, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetBatteryRange", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetBatteryRange(string IntSN, string terminalName, string g_sUserNo, string batteryValue);

		[OperationContract(Action = "AutomationWebService/GetBatteryRange", ReplyAction = "*")]
		Task<string> GetBatteryRangeAsync(string IntSN, string terminalName, string g_sUserNo, string batteryValue);

		[OperationContract(Action = "AutomationWebService/GetValueByCmd", ReplyAction = "*")]
		[XmlSerializerFormat(SupportFaults = true)]
		string GetValueByCmd(string IntSN, string Cmd, string terminalName);

		[OperationContract(Action = "AutomationWebService/GetValueByCmd", ReplyAction = "*")]
		Task<string> GetValueByCmdAsync(string IntSN, string Cmd, string terminalName);
	}
}
